<template>
  <div class="hello">
    <el-button type="primary" @click="handleClick">打开上传</el-button>
    <Upload ref="Upload"/>
  </div>
</template>

<script>
import Upload from './upload.vue'
export default {
  name: 'HelloWorld',
  components: { Upload },
  methods: {
    handleClick() {
      this.$refs.Upload.dialogVisible = true
    }
  }
}
</script>


